package factory;

/**
 * @author Joachim
 * @use This class servers as an id Generator. If we add workers each one should have an unique id
 * @see primary key
 */
public class MitarbeiterIdVerteiler {

	static int nextNumber;
	int number;

	// Konstruktor
	public MitarbeiterIdVerteiler() {
		nextNumber++;
		number = nextNumber;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}
}
